//
//  SMMNavigationController.m
//  RentCar
//
//  Created by sunmingming on 14-4-1.
//  Copyright (c) 2014年 Ebola. All rights reserved.
//

#import "SMMNavigationController.h"
#import "tooles.h"

@interface SMMNavigationController ()

@end

@implementation SMMNavigationController

-(id)initWithRootViewController:(UIViewController *)rootViewController
{
    self = [super initWithRootViewController:rootViewController];
    if (self) {
        rootViewController.edgesForExtendedLayout = UIRectEdgeNone;
        self.navigationBar.barStyle = UIBarStyleBlack;
        self.navigationBar.tintColor = [UIColor whiteColor];
        [self.navigationBar configureFlatNavigationBarWithColor:[UIColor blackColor]];
        [UIBarButtonItem configureFlatButtonsWithColor:[UIColor blackColor]
                                      highlightedColor:[UIColor grayColor]
                                          cornerRadius:3];
    }
    
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end